var stateArray = [ 
 {color:"#fd9048",name:"未签到"}
,"已签到"
,"已完成"
,"已取消"];

/**
 * 根据拜访状态获取标签
 * @param {*} statecode 
 */
function getStateNameByStateCode(statecode){
    var name = '';
    var color = '';
    if(statecode=="0"){
      name = '未签到';
    }else if(statecode=="1"){
        name= '已完成';
        color='color2';
    }else if(statecode=="2"){
        name= '已取消';
        color='color1';
    }else if(statecode=="3"){
        name= '已签到';
    }
    return {color:color,name:name};
}




module.exports = {
    getStateNameByStateCode,
}